C1.WPF Namespace > Extensions Class > SetBinding Method : SetBinding<T>(FrameworkElement,DependencyProperty,T,Expression<Func<T,Object>>,IValueConverter) Method |
'Declaration
<System.Runtime.CompilerServices.ExtensionAttribute()> Public Overloads Shared Sub SetBinding(Of T)( _ ByVal target As System.Windows.FrameworkElement, _ ByVal dp As System.Windows.DependencyProperty, _ ByVal source As T, _ ByVal expr As System.Linq.Expressions.Expression(Of Func(Of T,Object)), _ ByVal converter As System.Windows.Data.IValueConverter _ )
'Usage
Dim target As System.Windows.FrameworkElement Dim dp As System.Windows.DependencyProperty Dim source As T Dim expr As System.Linq.Expressions.Expression(Of Func(Of T,Object)) Dim converter As System.Windows.Data.IValueConverter Extensions.SetBinding(Of T)(target, dp, source, expr, converter)
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2